< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03100000.xhp

(section: variablen)

Variables
変数(hd_id3149669.1)

The following statements and functions are for working with variables. You can use these functions to declare or define variables, convert variables from one type to another, or determine the variable type.
下記のステートメントおよび関数は、変数関係の処理を行うためのものです。これらの関数では、変数の宣言や、異なる変数型の間での値の変換、変数型の判定などを行えます。(par_id3147265.2)

(/section: variablen)

(embed text/sbasic/shared/03100050.xhp#ccur : linkinfo)

CCur Function [Runtime]
CCur 関数 [実行時](par_idN10541.)

Converts a string expression or numeric expression to a currency expression. The locale settings are used for decimal separators and currency symbols.
文字列式または数式を通貨式に変換します。小数点および通貨記号にはロケール設定が使用されます。(par_idN10545.)

(/embed text/sbasic/shared/03100050.xhp#ccur)

(embed text/sbasic/shared/03100100.xhp#cbool : linkinfo)

CBool Function [Runtime]
CBool 関数 [実行時](hd_id3150616.1)

Converts a string comparison or numeric comparison to a Boolean expression, or converts a single numeric expression to a Boolean expression.
文字列や数値の比較演算結果、および単独の数値表式をブール型の表式に変換します。(par_id3145136.2)

(/embed text/sbasic/shared/03100100.xhp#cbool)

(embed text/sbasic/shared/03100300.xhp#cdate : linkinfo)

CDate Function [Runtime]
CDate 関数 [実行時](hd_id3150772.1)

Converts any string or numeric expression to a date value.
文字列および数値表式を、日付データに変換します。(par_id3150986.2)

(/embed text/sbasic/shared/03100300.xhp#cdate)

(embed text/sbasic/shared/03100060.xhp#cdec : linkinfo)

CDec Function [Runtime]
CDec 関数 [実行時](par_idN10548.)

Converts a string expression or numeric expression to a decimal expression.
文字列式または数式を 10 進数の式に変換します。(par_idN10558.)

(/embed text/sbasic/shared/03100060.xhp#cdec)

(embed text/sbasic/shared/03100400.xhp#cdbl : linkinfo)

CDbl Function [Runtime]
CDbl 関数 [実行時](hd_id3153750.1)

Converts any numerical expression or string expression to a double type.
文字列および数値表式を、倍精度の数値データに変換します。(par_id3149233.2)

(/embed text/sbasic/shared/03100400.xhp#cdbl)

(embed text/sbasic/shared/03100500.xhp#cint : linkinfo)

CInt Function [Runtime]
CInt 関数 [実行時](hd_id3149346.1)

Converts any string or numeric expression to an integer.
文字列および数値表式を、整数値に変換します。(par_id3155419.2)

(/embed text/sbasic/shared/03100500.xhp#cint)

(embed text/sbasic/shared/03100600.xhp#clng : linkinfo)

CLng Function [Runtime]
CLng 関数 [実行時](hd_id3153311.1)

Converts any string or numeric expression to a long integer.
文字列および数値表式を、ロング整数の数値データに変換します。(par_id3148686.2)

(/embed text/sbasic/shared/03100600.xhp#clng)

(embed text/sbasic/shared/03100700.xhp#const : linkinfo)

Const Statement [Runtime]
Const ステートメント [実行時](hd_id3146958.1)

Defines a string as a constant.
文字列を定数として定義します。(par_id3154143.2)

(/embed text/sbasic/shared/03100700.xhp#const)

(embed text/sbasic/shared/03100900.xhp#csng : linkinfo)

CSng Function[Runtime]
CSng 関数 [実行時](hd_id3153753.1)

Converts any string or numeric expression to data type Single.
文字列および数値表式を、単精度の数値データに変換します。(par_id3149748.2)

(/embed text/sbasic/shared/03100900.xhp#csng)

(embed text/sbasic/shared/03101000.xhp#cstr : linkinfo)

CStr Function [Runtime]
CStr 関数 [実行時](hd_id3146958.1)

Converts any numeric expression to a string expression.
数値表式を、文字列に変換します。(par_id3147574.2)

(/embed text/sbasic/shared/03101000.xhp#cstr)

(embed text/sbasic/shared/03100070.xhp#cvar : linkinfo)

CVar Function [Runtime]
CVar 関数 [実行時](par_idN1054B.)

Converts a string expression or numeric expression to a variant expression.
文字列式または数式をバリエーション式に変換します。(par_idN1055B.)

(/embed text/sbasic/shared/03100070.xhp#cvar)

(embed text/sbasic/shared/03100080.xhp#cverr : linkinfo)

CVErr Function [Runtime]
CVErr 関数 [実行時](par_idN1054B.)

Converts a string expression or numeric expression to a variant expression of the sub type "Error".
文字列式または数式をサブタイプ「Error」のバリエーション式に変換します。(par_idN1055B.)

(/embed text/sbasic/shared/03100080.xhp#cverr)

(embed text/sbasic/shared/03101100.xhp#defbool : linkinfo)

DefBool Statement [Runtime]
DefBool ステートメント [実行時](hd_id3145759.1)

If no type-declaration character or keyword is specified, the DefBool statement sets the default data type for variables, according to a letter range.
DefBool ステートメントでは、型宣言子やキーワードが指定されない場合にデフォルトの変数型を適用する、変数名の文字範囲を指定します。(par_id3153089.2)

(/embed text/sbasic/shared/03101100.xhp#defbool)

(embed text/sbasic/shared/03101110.xhp#defcur : linkinfo)

DefCur Statement [Runtime]
DefCur ステートメント [実行時](par_idN1057D.)

If no type-declaration character or keyword is specified, the DefCur statement sets the default variable type, according to a letter range.
型宣言文字またはキーワードが指定されていない場合、DefCur ステートメントは文字範囲に従ってデフォルトの変数型を設定します。(par_idN1058D.)

(/embed text/sbasic/shared/03101110.xhp#defcur)

(embed text/sbasic/shared/03101300.xhp#defdate : linkinfo)

DefDate Statement [Runtime]
DefDate ステートメント [実行時](hd_id3150504.1)

If no type-declaration character or keyword is specified, the DefDate statement sets the default variable type, according to a letter range.
DefDate ステートメントでは、型宣言子やキーワードが指定されない場合にデフォルトの変数型を適用する、変数名の文字範囲を指定します。(par_id3145069.2)

(/embed text/sbasic/shared/03101300.xhp#defdate)

(embed text/sbasic/shared/03101400.xhp#defdbl : linkinfo)

DefDbl Statement [Runtime]
DefDbl ステートメント [実行時](hd_id3147242.1)

Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
型宣言子や型宣言キーワードが指定されていない変数に対して、変数名に応じて適用するデフォルトの変数型を設定します。(par_id3153126.2)

(/embed text/sbasic/shared/03101400.xhp#defdbl)

(embed text/sbasic/shared/03101120.xhp#deferr : linkinfo)

DefErr Statement [Runtime]
DefErr ステートメント [実行時](par_idN1057D.)

If no type-declaration character or keyword is specified, the DefErr statement sets the default variable type, according to a letter range.
型宣言文字またはキーワードが指定されていない場合、DefErr ステートメントは文字範囲に従ってデフォルトの変数型を設定します。(par_idN1058D.)

(/embed text/sbasic/shared/03101120.xhp#deferr)

(embed text/sbasic/shared/03101500.xhp#defint : linkinfo)

DefInt Statement [Runtime]
DefInt ステートメント [実行時](hd_id3149811.1)

Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
型宣言子や型宣言キーワードが指定されていない変数に対して、変数名に応じて適用するデフォルトの変数型を設定します。(par_id3149762.2)

(/embed text/sbasic/shared/03101500.xhp#defint)

(embed text/sbasic/shared/03101600.xhp#deflng : linkinfo)

DefLng Statement [Runtime]
DefLng ステートメント [実行時](hd_id3148538.1)

Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
型宣言子や型宣言キーワードが指定されていない変数に対して、変数名に応じて適用するデフォルトの変数型を設定します。(par_id3149514.2)

(/embed text/sbasic/shared/03101600.xhp#deflng)

(embed text/sbasic/shared/03101700.xhp#defobj : linkinfo)

DefObj Statement [Runtime]
DefObj ステートメント [実行時](hd_id3149811.1)

Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
型宣言子や型宣言キーワードが指定されていない変数に対して、変数名に応じて適用するデフォルトの変数型を設定します。(par_id3147573.2)

(/embed text/sbasic/shared/03101700.xhp#defobj)

(embed text/sbasic/shared/03101130.xhp#defsng : linkinfo)

DefSng Statement [Runtime]
DefSng ステートメント [実行時](par_idN10577.)

If no type-declaration character or keyword is specified, the DefSng statement sets the default variable type, according to a letter range.
型宣言文字またはキーワードが指定されていない場合、DefSng ステートメントは文字範囲に従ってデフォルトの変数型を設定します。(par_idN10587.)

(/embed text/sbasic/shared/03101130.xhp#defsng)

(embed text/sbasic/shared/03101140.xhp#defstr : linkinfo)

DefStr Statement [Runtime]
DefStr ステートメント [実行時](par_idN10577.)

If no type-declaration character or keyword is specified, the DefStr statement sets the default variable type, according to a letter range.
型宣言文字またはキーワードが指定されていない場合、DefStr ステートメントは文字範囲に従ってデフォルトの変数型を設定します。(par_idN10587.)

(/embed text/sbasic/shared/03101140.xhp#defstr)

(embed text/sbasic/shared/03102000.xhp#defvar : linkinfo)

DefVar Statement [Runtime]
DefVar ステートメント [実行時](hd_id3143267.1)

Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
型宣言子や型宣言キーワードが指定されていない変数に対して、変数名に応じて適用するデフォルトの変数型を設定します。(par_id3153825.2)

(/embed text/sbasic/shared/03102000.xhp#defvar)

(embed text/sbasic/shared/03102100.xhp#dimtext : linkinfo)

Dim Statement [Runtime]
Dim ステートメント [実行時](hd_id3149812.1)

Declares a variable or an array.
変数や配列を宣言します。(par_id3143271.2)

(/embed text/sbasic/shared/03102100.xhp#dimtext)

(embed text/sbasic/shared/03102101.xhp#redim : linkinfo)

ReDim Statement [Runtime]
ReDim ステートメント [実行時](hd_id3150398.1)

Declares a variable or an array.
変数や配列を宣言します。(par_id3154685.2)

(/embed text/sbasic/shared/03102101.xhp#redim)

(embed text/sbasic/shared/03102200.xhp#isarray : linkinfo)

IsArray Function [Runtime]
IsArray 関数 [実行時](hd_id3154346.1)

Determines if a variable is a data field in an array.
与えられた変数が、配列内のデータフィールドであるかを判定します。(par_id3159413.2)

(/embed text/sbasic/shared/03102200.xhp#isarray)

(embed text/sbasic/shared/03102300.xhp#isdate : linkinfo)

IsDate Function [Runtime]
IsDate 関数 [実行時](hd_id3145090.1)

Tests if a numeric or string expression can be converted to a Date variable.
数値ないし文字列表式が 日付 変数に変換できるかを判定します。(par_id3153311.2)

(/embed text/sbasic/shared/03102300.xhp#isdate)

(embed text/sbasic/shared/03102400.xhp#isempty : linkinfo)

IsEmpty Function [Runtime]
IsEmpty 関数 [実行時](hd_id3153394.1)

Tests if a Variant variable contains the Empty value. The Empty value indicates that the variable is not initialized.
バリアント型変数の値が、空 (Empty) であるかを判定します。値が空 (Empty) である変数は、初期化前であることを意味します。(par_id3163045.2)

(/embed text/sbasic/shared/03102400.xhp#isempty)

(embed text/sbasic/shared/03102450.xhp#iserror : linkinfo)

IsError Function [Runtime]
IsError 関数 [実行時](par_idN1054E.)

Tests if a variable contains an error value.
変数にエラー値が含まれているかどうかをテストします。(par_idN1055E.)

(/embed text/sbasic/shared/03102450.xhp#iserror)

(embed text/sbasic/shared/03102600.xhp#isnull : linkinfo)

IsNull Function [Runtime]
IsNull 関数 [実行時](hd_id3155555.1)

Tests if a Variant contains the special Null value, indicating that the variable does not contain data.
バリアント型変数が、変数値にデータがないことを示す Null という特殊な値であるかを判定します。(par_id3146957.2)

(/embed text/sbasic/shared/03102600.xhp#isnull)

(embed text/sbasic/shared/03102700.xhp#isnumeric : linkinfo)

IsNumeric Function [Runtime]
IsNumeric 関数 [実行時](hd_id3145136.1)

Tests if an expression is a number. If the expression is a number, the function returns True, otherwise the function returns False.
与えられた表式が数値であるかを判定します。この関数は、与えられた表式が数値である場合に True を返し、そうでない場合は False を返します。(par_id3149177.2)

(/embed text/sbasic/shared/03102700.xhp#isnumeric)

(embed text/sbasic/shared/03102800.xhp#isobject : linkinfo)

IsObject Function [Runtime]
IsObject 関数 [実行時](hd_id3149346.1)

Tests if an object variable is an OLE object. The function returns True if the variable is an OLE object, otherwise it returns False.
オブジェクト変数が OLE オブジェクトであるかを判定します。 オブジェクト変数が OLE オブジェクトであるかを判定します。この関数は、与えられた変数が OLE オブジェクトである場合に True を返し、そうでない場合は False を返します。(par_id3148538.2)

(/embed text/sbasic/shared/03102800.xhp#isobject)

(embed text/sbasic/shared/03102900.xhp#lbound : linkinfo)

LBound Function [Runtime]
LBound 関数 [実行時](hd_id3156027.1)

Returns the lower boundary of an array.
配列のインデックス範囲の下限値を返します。(par_id3147226.2)

(/embed text/sbasic/shared/03102900.xhp#lbound)

(embed text/sbasic/shared/03103000.xhp#ubound : linkinfo)

UBound Function [Runtime]
UBound 関数 [実行時](hd_id3148538.1)

Returns the upper boundary of an array.
配列のインデックス範囲の最大値を返します。(par_id3147573.2)

(/embed text/sbasic/shared/03103000.xhp#ubound)

(embed text/sbasic/shared/03103100.xhp#let : linkinfo)

Let Statement [Runtime]
Let ステートメント [実行時](hd_id3147242.1)

Assigns a value to a variable.
変数に値を代入します。(par_id3149233.2)

(/embed text/sbasic/shared/03103100.xhp#let)

(embed text/sbasic/shared/03104200.xhp#array : linkinfo)

Array Function [Runtime]
Array 関数 [実行時](hd_id3150499.1)

Returns the type Variant with a data field.
指定データをバリアント型データの配列として返します。(par_id3155555.2)

(/embed text/sbasic/shared/03104200.xhp#array)

(embed text/sbasic/shared/03104300.xhp#dimarray : linkinfo)

DimArray Function [Runtime]
DimArray 関数 [実行時](hd_id3150616.1)

Returns a Variant array.
バリアント型の配列を返します。(par_id3153527.2)

(/embed text/sbasic/shared/03104300.xhp#dimarray)

(embed text/sbasic/shared/03104700.xhp#erase : linkinfo)

Erase Function [Runtime]
Erase 関数 [実行時](par_idN10548.)

Erases the contents of array elements of fixed size arrays, and releases the memory used by arrays of variable size.
固定サイズ配列の配列要素の内容を消去し、可変サイズ配列により使用されているメモリーを解放します。(par_idN10558.)

(/embed text/sbasic/shared/03104700.xhp#erase)

(embed text/sbasic/shared/03103200.xhp#optionbase : linkinfo)

Option Base Statement [Runtime]
Option Base ステートメント [実行時](hd_id3155805.1)

Defines the default lower boundary for arrays as 0 or 1.
配列のインデックス範囲について、デフォルトで適用される下限値を 0 ないし 1 のいずれかに設定します。(par_id3147242.2)

(/embed text/sbasic/shared/03103200.xhp#optionbase)

(embed text/sbasic/shared/03103300.xhp#optionexplicit : linkinfo)

Option Explicit Statement [Runtime]
Option Explicit ステートメント [実行時](hd_id3145090.1)

Specifies that every variable in the program code must be explicitly declared with the Dim statement.
プログラムコード中で使用するすべての変数を、Dim ステートメントを使って明示的に宣言する必要があるようにします。(par_id3148538.2)

(/embed text/sbasic/shared/03103300.xhp#optionexplicit)

(embed text/sbasic/shared/03103400.xhp#public : linkinfo)

Public Statement [Runtime]
Public ステートメント [実行時](hd_id3153311.1)

Dimensions a variable or an array at the module level (that is, not within a subroutine or function), so that the variable and the array are valid in all libraries and modules.
変数や配列を (有効範囲を関数やサブルーチン内に限定するのではなく) モジュールレベルで定義し、すべてのライブラリやモジュールを通じて利用できるようにします。(par_id3150669.2)

(/embed text/sbasic/shared/03103400.xhp#public)

(embed text/sbasic/shared/03103450.xhp#global : linkinfo)

Global Statement [Runtime]
Global ステートメント [実行時](hd_id3159201.1)

Dimensions a variable or an array at the global level (that is, not within a subroutine or function), so that the variable and the array are valid in all libraries and modules for the current session.
変数や配列を (1 つのサブルーチンや関数内部に限定するのではなく) 大域レベルで定義し、現在のセッションにおけるすべてのライブラリやモジュールで使用可能にします。(par_id3149177.2)

(/embed text/sbasic/shared/03103450.xhp#global)

(embed text/sbasic/shared/03103500.xhp#static : linkinfo)

Static Statement [Runtime]
Static ステートメント [実行時](hd_id3149798.1)

Declares a variable or an array at the procedure level within a subroutine or a function, so that the values of the variable or the array are retained after exiting the subroutine or function. Dim statement conventions are also valid.
関数およびサブルーチン内で変数や配列を定義する際に、これらをプロシージャーレベルで再利用することを宣言して、該当する関数およびサブルーチンが終了しても、こうした変数や配列に代入した値を保持するようにします。ここでは Dim ステートメントと同様の規約が適用されます。(par_id3153311.2)

(/embed text/sbasic/shared/03103500.xhp#static)

(embed text/sbasic/shared/03103600.xhp#typename : linkinfo)

TypeName Function; VarType Function[Runtime]
TypeName 関数; VarType 関数 [実行時](hd_id3143267.1)

Returns a string (TypeName) or a numeric value (VarType) that contains information for a variable.
与えられた変数のデータ型を示す文字列 (TypeName) および数値 (VarType) を返します。(par_id3159157.2)

(/embed text/sbasic/shared/03103600.xhp#typename)

(embed text/sbasic/shared/03103700.xhp#set : linkinfo)

Set Statement[Runtime]
Set ステートメント [実行時](hd_id3154422.1)

Sets an object reference on a variable or a Property.
変数や属性へのオブジェクト参照を設定します。(par_id3159149.2)

(/embed text/sbasic/shared/03103700.xhp#set)

(embed text/sbasic/shared/03103800.xhp#findobject : linkinfo)

FindObject Function [Runtime]
FindObject 関数 [実行時](hd_id3145136.1)

Enables an object to be addressed at run-time as a string parameter through the object name.
文字列パラメータにオブジェクト名を指定することで、実行時に該当オブジェクトへアクセスします。(par_id3155341.2)

(/embed text/sbasic/shared/03103800.xhp#findobject)

(embed text/sbasic/shared/03103900.xhp#findpropertyobject : linkinfo)

FindPropertyObject Function [Runtime]
FindPropertyObject 関数 [実行時](hd_id3146958.1)

Enables objects to be addressed at run-time as a string parameter using the object name.
文字列パラメータにオブジェクト名を指定することで、実行時に該当オブジェクトへアクセスします。(par_id3154285.2)

(/embed text/sbasic/shared/03103900.xhp#findpropertyobject)

(embed text/sbasic/shared/03104100.xhp#optional : linkinfo)

Optional (in Function Statement) [Runtime]
Optional (Function ステートメントと併用) [実行時](hd_id3149205.1)

Allows you to define parameters that are passed to a function as optional.
オプションとして関数に渡すパラメータを指定します。(par_id3143267.2)

(/embed text/sbasic/shared/03104100.xhp#optional)

(embed text/sbasic/shared/03104000.xhp#ismissing : linkinfo)

IsMissing function [Runtime]
IsMissing 関数 [実行時](hd_id3153527.1)

Tests if a function is called with an optional parameter.
関数の呼び出し時にオプションパラメータが指定されているかをチェックします。(par_id3153825.2)

(/embed text/sbasic/shared/03104000.xhp#ismissing)

(embed text/sbasic/shared/03104400.xhp#hasunointerfaces : linkinfo)

HasUnoInterfaces Function [Runtime]
HasUnoInterfaces 関数 [実行時](hd_id3149987.1)

Tests if a Basic Uno object supports certain Uno interfaces.
特定の Uno インタフェースを Basic Uno オブジェクトがサポートしているかを確認します。(par_id3151262.2)

(/embed text/sbasic/shared/03104400.xhp#hasunointerfaces)

(embed text/sbasic/shared/03104600.xhp#equalunoobjects : linkinfo)

EqualUnoObjects Function [Runtime]
EqualUnoObjects 関数 [実行時](hd_id3149205.1)

Returns True if the two specified Basic Uno objects represent the same Uno object instance.
2 つの Basic Uno オブジェクトが同一の Uno オブジェクトインスタンスを示す場合、True を返します。(par_id3145090.2)

(/embed text/sbasic/shared/03104600.xhp#equalunoobjects)

(embed text/sbasic/shared/03104500.xhp#isunostruct : linkinfo)

IsUnoStruct Function [Runtime]
IsUnoStruct 関数 [実行時](hd_id3146117.1)

Returns True if the given object is a Uno struct.
与えられたオブジェクトが Uno 構造型であれば True を返します。(par_id3146957.2)

(/embed text/sbasic/shared/03104500.xhp#isunostruct)


< Prev / Next >